From: Paul Donald Date: Thu, 18 Sep 2025 23:35:15 +0000 (+0200) Subject: luci-app-unbound: fix logic error X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22http:/www.crowdsec.net/%22/%22https:/collectd.org/%22http:/www.crowdsec.net/%22?a=commitdiff_plain;h=f5d7eaa94e3312ea458926901ff5a13930e100dc;p=project%2Fluci.git luci-app-unbound: fix logic error Signed-off-by: Paul Donald --- diff --git a/applications/luci-app-unbound/htdocs/luci-static/resources/view/unbound/configure.js b/applications/luci-app-unbound/htdocs/luci-static/resources/view/unbound/configure.js index 06786f24b0..fab8ff8663 100644 --- a/applications/luci-app-unbound/htdocs/luci-static/resources/view/unbound/configure.js +++ b/applications/luci-app-unbound/htdocs/luci-static/resources/view/unbound/configure.js @@ -37,7 +37,7 @@ return view.extend({ const dhcpLink = uci.get('unbound', 'ub_main', 'dhcp_link'); const leasetrig = uci.get('dhcp', 'odhcpd', 'leasetrigger') || 'undefined'; - if (manual === '0' && dhcpLink === 'odhcpd' && leasetrig === '/usr/lib/unbound/odhcpd.sh') { + if (manual === '0' && dhcpLink === 'odhcpd' && leasetrig !== '/usr/lib/unbound/odhcpd.sh') { ui.addTimeLimitedNotification(null, E('p', _('Note: local DNS is configured to look at odhpcd, but odhpcd UCI lease trigger is incorrectly set:') + "dhcp.odhcpd.leasetrigger='" + leasetrig + "'"), 15000, 'note'); }